package com.eportal.ORM;

/**
 * TcardAccountInfoId entity. @author MyEclipse Persistence Tools
 */

public class TcardAccountInfoId implements java.io.Serializable {

	// Fields

	private String TCard;
	private String TTermid;

	// Constructors

	/** default constructor */
	public TcardAccountInfoId() {
	}

	/** full constructor */
	public TcardAccountInfoId(String TCard, String TTermid) {
		this.TCard = TCard;
		this.TTermid = TTermid;
	}

	// Property accessors

	public String getTCard() {
		return this.TCard;
	}

	public void setTCard(String TCard) {
		this.TCard = TCard;
	}

	public String getTTermid() {
		return this.TTermid;
	}

	public void setTTermid(String TTermid) {
		this.TTermid = TTermid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TcardAccountInfoId))
			return false;
		TcardAccountInfoId castOther = (TcardAccountInfoId) other;

		return ((this.getTCard() == castOther.getTCard()) || (this.getTCard() != null
				&& castOther.getTCard() != null && this.getTCard().equals(
				castOther.getTCard())))
				&& ((this.getTTermid() == castOther.getTTermid()) || (this
						.getTTermid() != null
						&& castOther.getTTermid() != null && this.getTTermid()
						.equals(castOther.getTTermid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTCard() == null ? 0 : this.getTCard().hashCode());
		result = 37 * result
				+ (getTTermid() == null ? 0 : this.getTTermid().hashCode());
		return result;
	}

}